package com.biz.primus.ms.thirdlogin.oauth.api.alipay;

import lombok.Getter;
import org.scribe.model.OAuthConfig;
import org.scribe.model.SignatureType;

import java.io.OutputStream;

/**
 * @author jun.liu
 * @date 2017/10/16
 */
@Getter
public class AlipayOAuthConfig extends OAuthConfig {

    private final String publicKey;

    public AlipayOAuthConfig(String key, String secret) {
        this(key, secret, "");
    }

    public AlipayOAuthConfig(String key, String secret, String publicKey) {
        super(key, secret);
        this.publicKey = publicKey;
    }

    public AlipayOAuthConfig(String key, String secret, String callback, SignatureType type, String scope, OutputStream stream, String publicKey)
    {
        super(key, secret, null, null, null, null);
        this.publicKey = publicKey;
    }
}
